from HTMLTestRunner import HTMLTestRunner
import unittest
import os

tests = unittest.defaultTestLoader.discover(os.getcwd(),pattern="Test*.py")

runner = HTMLTestRunner.HTMLTestRunner(
    title = "计算器测试报告",
    description="加法测试报告",
    verbosity = 1,
    stream = open(file="Calc_test.html",mode="w+",encoding="utf-8")
)

runner.run(tests)

# 发送邮件
